import db from '../db/index.js'

//ES6按需导出
export async function getAllMonkeys (req, res) {
  const [rows] = await db.query('select * from monkeys_info')
  // res.send({
  //   status:0, //0表示成功
  //   message:"查询猴子成功",
  //   data:rows,
  // })
  console.log(rows)
}

getAllMonkeys()
